/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Settings as ProSettings } from '@ant-design/pro-layout';

type OpenInMicroMessenger = 'wxwork' | 'wx';
type DefaultSettings = Partial<ProSettings & { openInMicroMessenger: OpenInMicroMessenger }>;

const publicPath =
  process.env.NODE_ENV === 'production' ? '//cdn-static.kuaidihelp.com/kuaidihelp_admin/' : '/';

const proSettings: DefaultSettings & { publicPath: string } = {
  navTheme: 'light',
  primaryColor: '#1890ff',
  layout: 'mix',
  contentWidth: 'Fluid',
  fixedHeader: true,
  fixSiderbar: true,
  colorWeak: false,
  title: '快宝管理后台',
  iconfontUrl: '//at.alicdn.com/t/font_3202184_98xufuk4oao.js',
  menu: {
    locale: false,
  },
  publicPath,
  openInMicroMessenger: 'wxwork',
};

export type { DefaultSettings };

export default proSettings;
